package com.movie.dto;

import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

// 用于 API 返回的用户信息，不包含敏感数据
@Data
public class UserDTO {
    private Long id;
    private String username;
    private String email;
    private String phone;
    private String address;
    private BigDecimal balance;
    private LocalDateTime registerTime;

    // 可以添加一个从 User 实体转换的构造函数或静态方法
    // public UserDTO(com.movie.entity.User user) {
    //     this.id = user.getId();
    //     this.username = user.getUsername();
    //     this.email = user.getEmail();
    //     this.phone = user.getPhone();
    //     this.address = user.getAddress();
    //     this.balance = user.getBalance();
    //     this.registerTime = user.getRegisterTime();
    // }
}